package design.Day03;

/**
* @description: 装饰者main
* @author: wangjun
* @create: 2022-01-13
*/
public class DecoratorMain {

    public static void main(String[] args) {
        Espresso espresso = new Espresso();
        System.out.println(espresso.cost());
        System.out.println(espresso.getDescription());

        Beverage darkRoast = new DarkRoast();
        darkRoast = new Mocha(darkRoast);
        darkRoast = new Mocha(darkRoast);
        System.out.println(darkRoast.cost());
        System.out.println(darkRoast.getDescription());
    }

}
